Package com.cisco.pt.ipc.sim.pdu.impl
Class OSPFHelloPacketImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.OSPFPacketImpl
com.cisco.pt.ipc.sim.pdu.impl.OSPFHelloPacketImpl
- All Implemented Interfaces:
IPCData,OSPFHelloPacket,OSPFPacket,Pdu,Signal
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IPAddressprotected intprotected IPAddressprotected Shortprotected IPAddressprotected Byteprotected ByteFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.OSPFPacketImpl
areaId, authenticationType, checkSum, length, routerId, sequence, typeCode, versionFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) intgetFieldType(String fieldName) voidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetBackupDesignatedRouter(IPAddress backupDesignatedRouter) voidsetDeadInterval(int deadInterval) voidsetDesignatedRouter(IPAddress designatedRouter) voidsetHelloInterval(Short helloInterval) voidsetNeighbors(List<IPAddress> neighbors) voidsetNetworkMask(IPAddress networkMask) voidvoidsetPriority(Byte priority) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.OSPFPacketImpl
getAreaId, getAuthenticationType, getCheckSum, getLength, getRouterId, getSequence, getTypeCode, getVersion, setAreaId, setAuthenticationType, setCheckSum, setLength, setRouterId, setSequence, setTypeCode, setVersionMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.OSPFPacket
getAreaId, getAuthenticationType, getCheckSum, getLength, getRouterId, getSequence, getTypeCode, getVersion, setAreaId, setAuthenticationType, setCheckSum, setLength, setRouterId, setSequence, setTypeCode, setVersionMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
networkMask
-
helloInterval
-
option
-
priority
-
deadInterval
protected int deadInterval -
designatedRouter
-
backupDesignatedRouter
-
neighbors
-
-
Constructor Details
-
OSPFHelloPacketImpl
public OSPFHelloPacketImpl()
-
-
Method Details
-
getNetworkMask
- Specified by:
getNetworkMaskin interfaceOSPFHelloPacket- Returns:
- IPAddress Returns a IPAddress
-
setNetworkMask
- Specified by:
setNetworkMaskin interfaceOSPFHelloPacket- Parameters:
networkMask- Takes in a parameter of networkMask
-
getHelloInterval
- Specified by:
getHelloIntervalin interfaceOSPFHelloPacket- Returns:
- Short Returns a Short
-
setHelloInterval
- Specified by:
setHelloIntervalin interfaceOSPFHelloPacket- Parameters:
helloInterval- Takes in a parameter of helloInterval
-
getOption
- Specified by:
getOptionin interfaceOSPFHelloPacket- Returns:
- Byte Returns a Byte
-
setOption
- Specified by:
setOptionin interfaceOSPFHelloPacket- Parameters:
option- Takes in a parameter of option
-
getPriority
- Specified by:
getPriorityin interfaceOSPFHelloPacket- Returns:
- Byte Returns a Byte
-
setPriority
- Specified by:
setPriorityin interfaceOSPFHelloPacket- Parameters:
priority- Takes in a parameter of priority
-
getDeadInterval
public int getDeadInterval()- Specified by:
getDeadIntervalin interfaceOSPFHelloPacket- Returns:
- int Returns a int
-
setDeadInterval
public void setDeadInterval(int deadInterval) - Specified by:
setDeadIntervalin interfaceOSPFHelloPacket- Parameters:
deadInterval- Takes in a parameter of deadInterval
-
getDesignatedRouter
- Specified by:
getDesignatedRouterin interfaceOSPFHelloPacket- Returns:
- IPAddress Returns a IPAddress
-
setDesignatedRouter
- Specified by:
setDesignatedRouterin interfaceOSPFHelloPacket- Parameters:
designatedRouter- Takes in a parameter of designatedRouter
-
getBackupDesignatedRouter
- Specified by:
getBackupDesignatedRouterin interfaceOSPFHelloPacket- Returns:
- IPAddress Returns a IPAddress
-
setBackupDesignatedRouter
- Specified by:
setBackupDesignatedRouterin interfaceOSPFHelloPacket- Parameters:
backupDesignatedRouter- Takes in a parameter of backupDesignatedRouter
-
getNeighbors
- Specified by:
getNeighborsin interfaceOSPFHelloPacket- Returns:
- List<IPAddress> Returns a List<IPAddress>
-
setNeighbors
- Specified by:
setNeighborsin interfaceOSPFHelloPacket- Parameters:
neighbors- Takes in a parameter of neighbors
-
getFieldType
- Overrides:
getFieldTypein classOSPFPacketImpl
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Overrides:
readin classOSPFPacketImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-
pduRead
- Specified by:
pduReadin interfaceSignal- Overrides:
pduReadin classOSPFPacketImpl
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classOSPFPacketImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classOSPFPacketImpl
-